package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.MerchantCreditScoreMapper;
import com.richest.api.service.IMerchantCreditScoreService;
import com.richest.bean.MerchantCreditScoreBean;

/**
 * 企业信用信息管理服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class MerchantCreditScoreServiceImpl implements IMerchantCreditScoreService {

	@Autowired
	private MerchantCreditScoreMapper mapper;

	@Override
	public Integer merchantCreditScoreAdd(MerchantCreditScoreBean bean) {
		return mapper.merchantCreditScoreAdd(bean);
	}

	@Override
	public Integer merchantCreditScoreUpdate(MerchantCreditScoreBean bean) {
		return mapper.merchantCreditScoreUpdate(bean);
	}

	@Override
	public Integer merchantCreditScoreDelete(Long id) {
		return mapper.merchantCreditScoreDelete(id);
	}

	@Override
	public MerchantCreditScoreBean merchantCreditScoreSelectOne(Long id) {
		return mapper.merchantCreditScoreSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> merchantCreditScoreSelectMap(Map<String, Object> params) {
		return mapper.merchantCreditScoreSelectMap(params);
	}
}
